package trinidad;

public class Result {
	private int result;
	private String name;
	
	public Result(int result, String name) {
		this.result = result;
		this.name = name;
	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getResult() {
		return result;
	}
	public void setResult(int result) {
		this.result = result;
	}
	
	public Result isGreater(Result result) {
		if(this.result > result.getResult()) {
			return this;
		}
		return result;
	}
}
